/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.property.subinfo.entity;

import com.jeeplus.modules.property.buildinfo.entity.PropertyBuildinginfo;

import javax.validation.constraints.NotNull;
import com.jeeplus.modules.sys.entity.User;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 房屋信息Entity
 * @author 陈龙
 * @version 2019-01-06
 */
public class PropertyHouseinfo extends DataEntity<PropertyHouseinfo> {
	
	private static final long serialVersionUID = 1L;
	private PropertyBuildinginfo buildingid;		// 楼宇id 父类
	private String housetype;		// 房屋类型
	private String area;		// 区域
	private String unit;		// 单元号
	private User houseowner;		// 业主
	private String floor;		// 楼层号
	private String room;		// 房间号
	private String ifdecoration;		// 是否装修
	private String ifvacancy;		// 是否空置
	
	public PropertyHouseinfo() {
		super();
	}

	public PropertyHouseinfo(String id){
		super(id);
	}

	public PropertyHouseinfo(PropertyBuildinginfo buildingid){
		this.buildingid = buildingid;
	}

	@NotNull(message="楼宇id不能为空")
	public PropertyBuildinginfo getBuildingid() {
		return buildingid;
	}

	public void setBuildingid(PropertyBuildinginfo buildingid) {
		this.buildingid = buildingid;
	}
	
	@ExcelField(title="房屋类型", dictType="house_type", align=2, sort=2)
	public String getHousetype() {
		return housetype;
	}

	public void setHousetype(String housetype) {
		this.housetype = housetype;
	}
	
	@ExcelField(title="区域", align=2, sort=3)
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@ExcelField(title="单元号", align=2, sort=4)
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	@NotNull(message="业主不能为空")
	@ExcelField(title="业主", fieldType=User.class, value="houseowner.name", align=2, sort=5)
	public User getHouseowner() {
		return houseowner;
	}

	public void setHouseowner(User houseowner) {
		this.houseowner = houseowner;
	}
	
	@ExcelField(title="楼层号", align=2, sort=12)
	public String getFloor() {
		return floor;
	}

	public void setFloor(String floor) {
		this.floor = floor;
	}
	
	@ExcelField(title="房间号", align=2, sort=13)
	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}
	
	@ExcelField(title="是否装修", dictType="yes_no", align=2, sort=14)
	public String getIfdecoration() {
		return ifdecoration;
	}

	public void setIfdecoration(String ifdecoration) {
		this.ifdecoration = ifdecoration;
	}
	
	@ExcelField(title="是否空置", dictType="yes_no", align=2, sort=15)
	public String getIfvacancy() {
		return ifvacancy;
	}

	public void setIfvacancy(String ifvacancy) {
		this.ifvacancy = ifvacancy;
	}
	
}